<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>管理中心</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript">
	function validate() {
		var name = document.getElementById("name").value;
		var pwd = document.getElementById("pwd").value;
		if (name == null || name == '') {
			alert("用户名不能为空");
			return false;
		}
		if (pwd == null || pwd == '') {
			alert("密码不能为空");
			return false;
		}
		return true;
	}
	
	function change(){
		var img = document.getElementById("checkImg");
		img.src="${pageContext.request.contextPath}/checkImg?"+new Date();
	}
	
</script>

<script src="${pageContext.request.contextPath }/js/jquery-1.8.3.js"></script>
<script src="${pageContext.request.contextPath }/js/js.js"></script>
<link href="${pageContext.request.contextPath }/css/style.css"
	rel="stylesheet" type="text/css" />
<script src="${pageContext.request.contextPath }/js/cloud.js"
	type="text/javascript"></script>
<script language="javascript">
	$(function() {
		$('.loginbox').css({
			'position' : 'absolute',
			'left' : ($(window).width() - 692) / 2
		});
		$(window).resize(function() {
			$('.loginbox').css({
				'position' : 'absolute',
				'left' : ($(window).width() - 692) / 2
			});
		})
	});
</script>

<body
	style="background-color: #1c77ac; background-image: url(images/light.png); background-repeat: no-repeat; background-position: center top; overflow: hidden;">



	<div id="mainBody">
		<div id="cloud1" class="cloud"></div>
		<div id="cloud2" class="cloud"></div>
	</div>


	<div class="logintop">
		<span>欢迎登录后台<b class="sysName"></b></span>
		<ul>
		</ul>
	</div>

	<div class="loginbody">

		<span class="systemlogo"><b class="sysName"></b></span>

		<div class="loginbox">

			<ul>
				<form method="post"
					action="${pageContext.request.contextPath }/login/adminLogin"
					target="_parent" name='theForm' onsubmit="return validate();">
					<li><input name="name" type="text" class="loginuser"
						value="用户名" onclick="JavaScript:this.value=''" /></li>
					<li><input name="pwd" type="password" class="loginpwd"
						value="" onclick="JavaScript:this.value=''" /></li>
					<li><span class="fieldSet">验证码: <input type="text"
							id="captcha" name="checkImg" class="text captcha" maxlength="4"
							autocomplete="off"> <img id="checkImg"
								class="captchaImage"
								src="${pageContext.request.contextPath}/checkImg"
								title="点击更换验证码" onclick="change()"></span></li>
					<li>&nbsp;<input type="hidden" name="act" value="signin" />
						&nbsp;<input type="submit" class="loginbtn" value="登录" />
							<label style="padding: 10px 0">${message}</label></li>
				</form>
			</ul>
		</div>
	</div>
	<div class="loginbm">&copy;</div>